package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.domain.Order;
import com.example.demo.domain.OrderRooms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: LiCheng
 * @CreateTime: 2024-11-07
 * @Description:
 * @Version: 1.0
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

//    @Select("SELECT t_order.*,room.number as 'roomNumber' FROM t_order  INNER JOIN room ON t_order.room_id = room.id WHERE flag  ${flags}")
    List<OrderRooms> listRooms(@Param("roomNumber") String roomNumber, @Param("flags") List<Integer> flags);
}
